package com.tkmybatis.hfy.enums;

import lombok.Getter;

@Getter
public enum ActionTypeEnum {
	//专家审批流
	EXPERT_DELIVER("ExpertDeliver","专家出库审批"),
	EXPERT_STORE("ExpertStore","专家入库审批"),
	EXPERT_IMPORTANT_INFORMATION("ExpertImportantInformation","专家重要信息审批"),
	EXPERT_FREEZE("ExpertFreeze","专家冻结审批"),
	EXPERT_ABSENT_APPEAL("EXPERT_ABSENT_APPEAL","专家缺席申诉审批"),
	EXPERT_LZPY_APPEAL("EXPERT_LZPY_APPEAL","专家履职评议申诉审批"),
	EXTRACTION_PROGRAM("ExtractionProgram","抽取方案审批"),
	EXPERT_STUDY("expertStudy","专家培训纪录审批"),
	
	//采购审批流
	BID_NOTICE("BidNotice","公告审批"),
	BID_NOTICE_CHANGE("BidNoticeChange","变更公告审批"),
	BID_RELEASE_CLARIFY("BidReleaseClarify","发布澄清审批"),
	BID_REVIEW_RESULT("BidReviewResult","评审结果提交审批"),
	BID_CANDIDATE_PUBLICITY("BidCandidatePublicity","候选人公示（更新）审批"),
	BID_RESULT_PUBLICITY("BidResultPublicity","结果公示审批"),
	BID_CHANGE_RESULT_PUBLICITY("BidChangeResultPublicity","变更结果公示审批"),
	BID_PREQUALIFICATION_NOTICE("BidPrequalificationNotice","资格预审公告审批"),
	BID_PREQUALIFICATION_NOTICE_CHANGE("BidPrequalificationNoticeChange","资格预审变更公告审批"),
	BID_PREQUALIFICATION_CLARIFY("BidPrequalificationClarify","资格预审澄清审批"),
	BID_PREQUALIFICATION_REVIEW_RESULT("BidPrequalificationReviewResult","资格预审结果提交审批"),
	BID_PURCHASE_FAILED("BidPurchaseFailed","采购失败审批"),
	BID_PROJECT_SUSPEND("BidProjectSuspend","项目暂停审批"),
	BID_TASK_TRANSFER("BidTaskTransfer","任务转办审批");
	
	private String code;

    private String message;
	
    
    ActionTypeEnum(String code, String message){
    	this.code = code;
    	this.message = message;
    }

    public static String getMessageByCode(String code){
		for (ActionTypeEnum e : ActionTypeEnum.values()) {
			if(e.getCode().equals(code)){
				return e.getMessage();
			}
		}
		return null;
	}
}
